<?php
namespace app\admin\controller;
use app\admin\model\Member as MemberModel;
use app\admin\controller\Common;
class Member extends Common
{

    public function lst()
    {   

      $members=db('member')->field('a.*')->alias('a')->order('a.id desc')->paginate(10);
        $this->assign('members',$members);

        //print_r($members);
        return view();
	}


	public function del(){
        if(MemberModel::destroy(input('id'))){
            $this->success('删除用户成功！',url('lst'));
        }else{
            $this->error('删除用户失败！');
        }
    }

}
